/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Trp_nivelCriteria extends AbstractORMCriteria {
	public final IntegerExpression ni_id_nivel;
	public final StringExpression ni_des_nivel;
	
	public Trp_nivelCriteria(Criteria criteria) {
		super(criteria);
		ni_id_nivel = new IntegerExpression("ni_id_nivel", this);
		ni_des_nivel = new StringExpression("ni_des_nivel", this);
	}
	
	public Trp_nivelCriteria(PersistentSession session) {
		this(session.createCriteria(Trp_nivel.class));
	}
	
	public Trp_nivelCriteria() throws PersistentException {
		this(orm.Basededatosv5PersistentManager.instance().getSession());
	}
	
	public Trp_cursoCriteria createTrp_cursoCriteria() {
		return new Trp_cursoCriteria(createCriteria("ORM_Trp_curso"));
	}
	
	public Trp_nivel uniqueTrp_nivel() {
		return (Trp_nivel) super.uniqueResult();
	}
	
	public Trp_nivel[] listTrp_nivel() {
		java.util.List list = super.list();
		return (Trp_nivel[]) list.toArray(new Trp_nivel[list.size()]);
	}
}

